<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // function test1(name,age,country='china'){
        //     return `我叫${name}年龄${age}来自${country}`
        // }

        // alert(test1('zhangsan',18))
        // alert(test1('zhangsan',18,'丑国'))

        var test2 = (name,age,country='china')=>{
            return `我叫${name}年龄${age}来自${country}`
        }

        alert(test2('zhangsan',18))
        alert(test2('zhangsan',18,'丑国'))


        // 默认值一定要写在形参列表的末尾  
        // 防止形参和实参不对应


        // var test3 = ()=>{
        //     console.log(arguments[0],arguments[arguments.length-1])
        // }

        // test3(10,20,30,40,50,100)

        // 箭头函数没有arguments  也没有 arguments.callee

        

    </script>
</body>
</html>